Puts the Background Actor on the room: the point of its picture named by actor_anchor stands at the room position (x, y). The picture scrolls with the camera, shakes with it, and can be moved every frame.
Game Boy: not available
Game Boy Color: not available
Sega Genesis: not built yet
On other consoles this differs: see Side by side and How the consoles differ.
actor_place(x, y)| Name | Type |
|---|---|
x | real |
y | real |
Nothing.
Stands the Background Actor on the room: the point of its picture that actor_anchor names is put at the room position (x, y). The numbers are room numbers, counted from the room's top-left corner, like an object's x and y, so the picture scrolls with the camera and shakes with it. It does nothing in a room that has no zoomable background.
The first call of any actor_ function in a room hands the picture's numbers to the actor. Until then the room's zoom_background_ calls steer it, and it stays on the screen. A room starts with the picture's top-left corner at the room's top-left corner, at real size and not turned. Calling it every frame is cheap: the console draws the picture, and moving, scaling and turning it costs about two and a half percent of a frame.
// Step event of the boss: it sways from side to side above the roof.
actor_place(240 + 12 * angle_sin(frame_count * 3), 97);The point of the picture named by actor_anchor now swings 12 pixels either side of the middle of a 480 wide room.
A no-op in a room that has no zoomable background (set the room's Zoomable background to an actor picture). The numbers are ROOM numbers, counted from the room's top-left corner, like an object's x and y. The first call of any actor_ function in a room hands the picture's numbers to the actor (until then the room's zoom_background_ calls steer it); a room starts with the picture's top-left corner at the room's top-left corner, scale 1, no turn. Cheap enough to call every frame. The picture is drawn by the console, so moving, scaling and turning it costs the game about two and a half percent of a frame.